package com.stedu.service;

import com.stedu.bean.Cars;
import com.stedu.exception.SteduException;

import java.util.List;

public interface CarsService {
    boolean insert(Cars c) throws SteduException;
    //删除
    boolean delete(Integer cid) throws SteduException;
    //修改
    boolean update(Cars c) throws SteduException;
    boolean updateCstate( String cstate,  Integer cid);
    //根据id查询
    Cars selectBycid(Integer cid);
    //分页查询
    String selectCplate(String cplate);
    List<Cars> selectBycplate(String cplate,String cstate);
}
